<template>
  <nut-popup
    closeable
    close-icon-position="top-right"
    position="bottom"
    v-model:visible="modelValue"
    round
    pop-class="popup_select"
  >
    <view class="yh-bottom-select-sure">
      <view class="content-title">选择开工方</view>
      <view class="content-box">
        <nut-radiogroup v-model="radioVal"  text-position='left'>
          <nut-radio :label="1">总包方</nut-radio>
          <nut-radio :label="2">监理方</nut-radio>
          <nut-radio :label="3">质监站</nut-radio>
          <nut-radio :label="4">材料检测</nut-radio>
          <nut-radio :label="5">防水分包</nut-radio>
          <nut-radio :label="6">国际贸易商</nut-radio>
        </nut-radiogroup>
        <view class="botton" @click="handOptionsSelected('')">下一步</view>
      </view>
    </view>
  </nut-popup>
</template>
<script lang="ts">
import { toRefs,reactive } from '@vue/reactivity';
export default {
  name: "yh-bottom-select-sure",
  props: {
    modelValue: {
      default: false,
    },
    typeEnum: {
      default: () => [],
    },
    handOptionsSelected: {
      default: function () {},
    },
  },
  setup() {
    const state = reactive({
      radioVal: 1, 
    });
    return{
      ...toRefs(state)
    }
  },
};
</script>
<style lang="scss">
.yh-bottom-select-sure{
  .content-title{
    font-size: 16px;
    font-family: PingFangSC, PingFangSC-Medium;
    font-weight: 500;
    color: #11161f;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .content-box{
    padding: 0 16px;
    border-top: 1px solid #eeeeee;
    .nut-radio__label{
      width: 100%;
      padding: 12px 0 14px 0;
      font-size: 13px;
      font-family: PingFangSC, PingFangSC-Regular;
      font-weight: 400;
      color: #333333;
      line-height: 18px;
    }
    .botton{
      width: 100%;
      height: 44px;
      border-radius: 4px;
      font-size: 16px;
      font-family: PingFangSC, PingFangSC-Regular;
      font-weight: 400;
      text-align: center;
      color: #ffffff;
      line-height: 44px;
      background: #dc2734;
      margin: 12px 0 32px;
    }
  }
}


</style>
